package lekcja4.wyk7.zad2;

/**
 * Author: Daniel
 */
public class MaxNaZmiennych {
    public static void main(String[] args){
        int a = 5;
        int b = 3;
        int c = 12;
        int d = 8;

        int max = a;

        if (b > max) {
            max = b;
        }

        if (c > max) {
            max = c;
        }

        if (d > max) {
            max = d;
        }

        System.out.println("max = " + max);
    }
}
